﻿using Domain.Entity.System_operation;
using Domain.Entity.System_setting;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.Configer.System_operation
{
    public class Wb_meterConfifer : IEntityTypeConfiguration<Wb_meter>
    {
        public void Configure(EntityTypeBuilder<Wb_meter> builder)
        {
            builder.ToTable(nameof(Wb_meter));
            builder.HasKey(e => e.Wb_id);
            builder.Property(e => e.Wb_id).HasColumnType("bigint");
            builder.Property(e => e.Wb_number).HasColumnType("varchar(64)");
            builder.Property(e => e.Wb_status).HasColumnType("int");
            builder.Property(e => e.Origin_place).HasColumnType("varchar(200)");
            builder.Property(e => e.Det_place).HasColumnType("varchar(200)");
            builder.Property(e => e.Tran_manager).HasColumnType("int");
            builder.Property(e => e.Order_time).HasColumnType("DateTime");
            builder.Property(e => e.Create_time).HasColumnType("DateTime");
            builder.Property(e => e.Create_by).HasColumnType("varchar(64)");
            builder.Property(e => e.Last_time).HasColumnType("DateTime");
            builder.Property(e => e.Last_by).HasColumnType("varchar(64)");
            builder.Property(e => e.Plan_time).HasColumnType("DateTime");
            builder.Property(e => e.Reality_time).HasColumnType("DateTime");
            builder.Property(e => e.Planget_time).HasColumnType("DateTime");
            builder.Property(e => e.Realityget_time).HasColumnType("DateTime");
            builder.Property(e => e.Audit_status).HasColumnType("tinyint").IsRequired().HasComment("审核状态：0、通过 1、未通过"); ;
            builder.Property(e => e.Payable_status).HasColumnType("tinyint").IsRequired().HasComment("结算状态：0、已结算 1、未结算"); ;
        }
    }
}
